package com.fyt.spring.cloud.project.api;

import com.fyt.spring.cloud.PO.GardenEquipmentPO;
import com.fyt.spring.cloud.project.api.impl.GardenEquipmentApiImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "monitor-provider",url = "127.0.0.1:8081",fallback = GardenEquipmentApiImpl.class)
public interface GardenEquipmentApi {

    @GetMapping(value = "gardenEquipment/list")
    List<GardenEquipmentPO> list();
}
